package com.ccp.dev.core.basic.mybatis.dialect;


import com.ccp.dev.core.basic.mybatis.Dialect;

/**
 * mysql 方言处理。
 *
 * @author badqiu
 */
public class MySQLDialect extends Dialect {
    @Override
    public boolean supportsLimitOffset() {
        return true;
    }

    @Override
    public boolean supportsLimit() {
        return true;
    }

    @Override
    public String getLimitString(String sql, int offset, String offsetPlaceholder, int limit, String limitPlaceholder) {
            return sql + " limit " + offsetPlaceholder + "," + limitPlaceholder;
    }


}
